const hmToken = 'heimatoken'
// 存
const saveToken = token => {
  localStorage.setItem(hmToken, JSON.stringify(token))
}
// 取
const getToken = () => {
  return JSON.parse(localStorage.getItem(hmToken))
}
// 删除
const removeToken = () => {
  localStorage.removeItem(hmToken)
}
// 暴露
export { saveToken, getToken, removeToken }
